package com.itheima.sys.service;

import com.itheima.sys.dto.CompanyDTO;
import com.itheima.sys.dto.UserJoinCompanyDTO;
import com.itheima.sys.entity.Company;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itheima
 * @since 2020-12-13
 */
public interface ICompanyService extends IService<Company> {

    List<CompanyDTO> queryUserJoinCompany(Long userId);

    CompanyDTO queryCurrentCompany();

    void updateCompany(CompanyDTO companyDTO);

    String uploadImage(MultipartFile file);

    List<CompanyDTO> queryCompany(String keyword, String industryId);

    void applyJoinCompany(UserJoinCompanyDTO userJoinCompanyDTO);

    void allowedJonCompany(Long applyUserId, Boolean approved, String remark);
}
